﻿@model List<Alma.Models.CategoryModel>

@{
    ViewBag.Title = "Index";
}

<h2>Liste des categories</h2>

<p>
    @Html.ActionLink("Créer une nouelle catégorie", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            Name
        </th>
        <th>
            ID
        </th>
        <th>
            Name_Realm
        </th>
        <th>
            ID_Realm
        </th>
        <th>
            Location
        </th>
        <th>
            ImageName
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Show", "Show", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
        <td>
            @item.Name
        </td>
         <td>
            @item.ID
        </td>
         <td>
            @item.Name_Realm
        </td>
        <td>
            @item.ID_Realm
        </td>
        <td>
            @item.Location
        </td>
        <td>
            @item.ImageName
        </td>
    </tr>
}

</table>
 @Html.ActionLink("Retour", "Index", "Admin")
